#include<iostream>
#include<algorithm>
using namespace std;
struct Point{
    int x,y;
    Point(int x=0,int y=0):x(x),y(y){}
};
ostream& operator << (ostream &out,const Point& p){
    out<< "("<<p.x<<","<<p.y<<")";
    return out;
}
const int maxn = 100 + 10;
int a[maxn];
int main(){
    long long a,b;
    while(cin>>a>>b){
        if(a==0)break;
        cout<<min(a,b)<<'\n';
    }
    cout<<Point(1,2)<<endl;
    return 0;
}